<?php

namespace App\Http\Controllers\Tools;

use App\Http\Common\FilesTools;
use App\Http\Controllers\BaseController;

/**
 * 文件的 操作类
 * Class FileController
 * @package App\Http\Controllers\Admin\filetools
 */
class FileController extends BaseController
{
    /**
     * 上传文件到云端
     */
    public function uploadFile (){
        return FilesTools::getInstance()->uploadFile($this->request);
    }
    /**
     * 上传文件到云端 比如头像等信息
     */
    public function uploadFile2 (){
        return FilesTools::getInstance()->uploadFile2($this->request);
    }
}
